<?php
require_once('db.php');

$query = "SELECT * FROM `users`";

$result = mysql_query($query) or die(mysql_error());
var_dump($result);exit;
while($user = mysql_fetch_assoc($result)) {
  print_r($user);
}
